package com.yg.ssm.index.serv;

import com.yg.ssm.index.dao.LoginDao;
import com.yg.ssm.index.model.SysUserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/8/29.
 */
@Service("loginService")
public class LoginService {
    @Autowired
    private LoginDao loginDao;
    public void setLoginDao(LoginDao loginDao) {
        this.loginDao = loginDao;
    }
    //查询参数
    public SysUserModel queryUserModel(String username){
        SysUserModel sm = loginDao.querySysUserModel(username);
        return sm;
    }

    public void upUserLoginTime( SysUserModel um) {
        loginDao.UpUserLoginTime(um);
    }
}
